package cz.hackathon.core;

import java.net.URL;

import cz.hackathon.rateit.model.Action;

public class QrReader {

	private XmlParser parser;

	public QrReader() {
		this.parser = new XmlParser();
	}

	public Action getAction(String urlString) throws Exception {
		URL url = new URL(urlString);
		return parser.parse(url.openStream());
	}

}
